import request from '@/utils/request'
export function searchGzwd(data) {
  return request({
    url: '/middleindex/gzwd/indexList',
    method: 'post',
    data
  })
}
export function searchGzwdLxAll(data) {
  return request({
    url: '/middleindex/gzwdlx/indexListAll',
    method: 'post',
    data
  })
}
export function searchGzwdLx(data) {
  return request({
    url: '/middleindex/gzwdlx/indexList',
    method: 'post',
    data
  })
}
export function searchXwgg(data) {
  return request({
    url: '/middleindex/xwgg/indexList',
    method: 'post',
    data
  })
}
export function getXwgg(data) {
  return request({
    url: '/middleindex/xwgg/indexGet',
    method: 'post',
    data
  })
}


/**
 * 获取验证码信息
 * @param data
 */
export function getCode() {
  return request({
    url: `/middleuser/login/getCode`,
    method: 'post'
  })
}


export function commonLogin(data,ip) {
  return request({
    url: '/middleuser/hgp/commonLogin',
    method: 'post',
    headers: {
      'refererIp': ip
    },
    data
  })
}
